package gulimall.feign;

import gulimall.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author HLF
 * @date 2022/8/12 20:57
 */
@Service
@FeignClient(value = "gulimall-product", path = "/product")
public interface ProductFeignService {

    @GetMapping("/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);


    @GetMapping("/skusaleattrvalue/info2/{skuId}")
    R listBySkuId(@PathVariable("skuId") Long skuId);


    /**
     * 根据skuId查询商品单价
     */
    @GetMapping("/skuinfo/getPrice/{skuId}")
    R getPrice(@PathVariable("skuId") Long skuId);
}
